<!-- end content / left -->
<div id="left">
    <div id="menu">
        {/if $menu.category/}
        <h6 id="h-menu-products" class="{/if $inpath[1] eq category/}selected{//if/}">
            <a href="#products"><span>分类管理</span></a></h6>
        <ul id="menu-products"  class="{/if $inpath[1] eq  category/}opened{/else/}closed{//if/}">
            {/foreach from=$menu.category item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/category/'/}{/$k/}" >{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.goods/}
        <h6 id="h-menu-pages" class="{/if $inpath[1] eq goods/}selected{//if/}">
            <a href="#pages">
            <span>商品管理</span></a></h6>
        <ul id="menu-pages" class="{/if $inpath[1] eq goods/}opened{/else/}closed{//if/}">
            {/foreach from=$menu.goods item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/goods/'/}{/$k/}">{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.purchase/}
        <h6 id="h-menu-events" class="{/if $inpath[1] eq purchase/}selected{//if/}">
            <a href="#events">
            <span>进货管理</span></a></h6>
        <ul id="menu-events"  class="{/if $inpath[1] eq purchase /}opened{/else/}closed{//if/}">
            {/foreach from=$menu.purchase item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/purchase/'/}{/$k/}">{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.sales/}
        <h6 id="h-menu-links"  class="{/if $inpath[1] eq sales/}selected{//if/}">
            <a href="#links"><span>出货管理</span></a></h6>
        <ul id="menu-links"  class="{/if $inpath[1] eq sales /}opened{/else/}closed{//if/}">
            {/foreach from=$menu.sales item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/sales/'/}{/$k/}">{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.statistics/}
        <h6 id="h-menu-settings" class="{/if $inpath[1] eq statistics/}selected{//if/}">
            <a href="#settings"><span>统计管理</span></a></h6>
        <ul id="menu-settings"  class="{/if $inpath[1] eq statistics /}opened{/else/}closed{//if/}">
            {/foreach from=$menu.statistics item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/statistics/'/}{/$k/}">{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.member/}
        <h6 id="h-menu-member" class="{/if $inpath[1] eq member /}selected{//if/}"><a href="#member"><span>会员管理</span></a></h6>
        <ul id="menu-member"  class="{/if $inpath[1] eq member /}opened{/else/}closed{//if/}">
            {/foreach from=$menu.member item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/member/'/}{/$k/}">{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.system/}
        <h6 id="h-menu-system" class="{/if $inpath[1] eq system /}selected{//if/}"><a href="#system"><span>系统</span></a></h6>
        <ul id="menu-system"  class="{/if $inpath[1] eq  system/}opened{/else/}closed{//if/}">
            {/foreach from=$menu.system item=items key=k/}
            <li class="{/if $inpath[2] eq $k/}selected{//if/}">
                <a href="{/get_url rule='/system/'/}{/$k/}">{/$items/}</a></li>
            {//foreach/}
        </ul>
        {//if/}

        {/if $menu.system/}
        <h6 id="h-menu-plugin" class="{/if $inpath[1] eq plugins /}selected{//if/}">
            <a href="#plugin"><span>插件管理</span></a></h6>
        <ul id="menu-plugin"  class="{/if $inpath[1] eq plugins /}opened{/else/}closed{//if/}">
        <li class="{/if $inpath[2] eq index /}selected{//if/}">
            <a href="{/get_url rule='/plugins/index'/}">插件开发说明</a></li>
        <li class="{/if $inpath[2] eq ecshop /}selected{//if/}">
            <a href="{/get_url rule='/plugins/ecshop'/}">ecshop数据转换</a></li>
        </ul>
        {//if/}
    </div>



    <div id="date-picker"></div>
</div>
<!-- end content / left -->
